export default {
    data() {
        return {
            searchkey: "",
        }
    },
    methods: {
        getSearch() {
            const p = {
                searchkey: this.searchkey
            }
            return p
        },
        setSearch(key) {
            this.searchkey = key
            return this
        },
        async searchHandle(val) {
            this.setPage(1)
            this.setSearch(val)
            const res = await this.getData();
            this.setTotal(res.total)
        }
    }
}